
<?php
$title = 'Users List';
$this->headTitle($title);
?>

<div class="top-bar">
	<a href="<?php echo $this->url('admin', array('module' => 'users', 'controller' => 'users', 'action'=>'add'));?>" class="button">ADD NEW </a>
	<h1><?php echo $this->escapeHtml($title); ?></h1>
	<div class="breadcrumbs">
		<a href="#">Homepage</a> / <a href="#">Contents</a>
	</div>
</div>
<br />

<div class="select-bar">
	<label> <input type="text" name="textfield" />
	</label> <label> <input type="submit" name="Submit" value="Search" />
	</label>
</div>
<div class="table">
	<img src="img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
	<img src="img/bg-th-right.gif" width="7" height="7" alt=""
		class="right" />
	<table class="listing" cellpadding="0" cellspacing="0">
		<tr>
			<th>#</th>
			<th class="first" width="177">User</th>
			<th>Username</th>
			<th>Email</th>
			<th>Groups</th>
			<th>Actions</th>
		</tr>
		
	<?php $index = 0; ?>
	<?php foreach ($users as $user) : ?>
		<tr <?php if((++$index)%2): ?>class="bg"<?php endif; ?>>
			<td><?php echo $index; ?></td>
			<td class="first style1"><?php echo $user->username?></td>
			<td class="first style1"><?php echo $user->username?></td>
			<td class="first style1"><?php echo $user->email?></td>
			<td class="first style1"></td>
			<td>
				<a href="<?php echo $this->url('admin_users', array('action'=>'edit', 'id' => $user->idusers));?>">Edit</a>
        		<a href="<?php echo $this->url('admin_users', array('action'=>'delete', 'id' => $user->idusers));?>">Delete</a>
			</td>
		</tr>
	<?php endforeach; ?>
		
		
	</table>
	<div class="select">
		<strong>Other Pages: </strong> <select>
			<option>1</option>
		</select>
	</div>
</div>


